package com.battery.minapp.controller;

import com.battery.system.service.ISysConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/test")
public class TestController {


    @Autowired
    private ISysConfigService configService;

    @GetMapping("/hello")
    @ResponseBody
    public Object hello() {
        return configService.selectByPrimaryKey(1);
    }

}
